<%@ page import="support.*, java.util.*, java.sql.*, javax.sql.*" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> 
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>

<jsp:include page="header.jsp" />

<% 
	RowSet countriesDATA = (RowSet) request.getAttribute("crsCountries"); 
%>

	<div id="content" class="expand">
		<h2>Graduate Application</h2>
		
		<p>Hello, <bean:write name="StudentsForm" property="firstName" /> <bean:write name="StudentsForm" property="lastName" />
		</p>
		
		<p>Select your country of citizenship</p>
		
		<div id="c1">
			<%
			for(int i=0; i < 78; i++) {
				countriesDATA.next();
			%>
			    <html:link action="students/citizenship">
				<html:param name="citizenship" value='<%=  countriesDATA.getString("country")  %>'/> <%= countriesDATA.getString("country") %>
				</html:link> <br/>
			<%
			}
			%>
		</div>
		
		<div id="c2">
			<%
			for(int i=78; i < 155; i++){
				countriesDATA.next();
				%>
				    <html:link action="students/citizenship">
					<html:param name="citizenship" value='<%=  countriesDATA.getString("country")  %>'/> <%= countriesDATA.getString("country") %>
					</html:link> <br/>
				<%
			}
			%>
		</div>
		
		<div id="c3">
			<%
			for(int i=155; i < 226; i++){
				countriesDATA.next();
				%>
				    <html:link action="students/citizenship">
					<html:param name="citizenship" value='<%=  countriesDATA.getString("country")  %>'/> <%= countriesDATA.getString("country") %>
					</html:link> <br/>
				<%
			}
			%>
		</div>
		
	</div>

</body>
</html>